//
//  JGDebug.h
//  JGDebug
//
//  Created by jagger.tu on 2025/3/13.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol JGDebugDelegate <NSObject>

- (void)debugWithContent:(nonnull NSString *)content;

@end

@interface JGDebug : NSObject

/// 共享实例
+ (instancetype)sharedInstance;

@property (nonatomic, weak) id<JGDebugDelegate> delegate;

/// 载入LightPlaySDK ,必须调用一次,且仅需要调用一次,建议:app 启动时调用
- (void)loadLightPlaySDK;

/// 取消载入
- (void)unloadLightPlaySDK;

/// 设置云端debug主机
/// - Parameters:
///   - host: 主机名称
///   - port: 主机端口
- (void)setRemoteDebugHost:(NSString *)host port:(u_int16_t)port;

/// 输出调试信息
/// - Parameter content: 调试内容
- (void)print:(NSString *)content;

/// 关闭调试
- (void)close;

@end

NS_ASSUME_NONNULL_END

//! Project version number for JGDebug.
FOUNDATION_EXPORT double JGDebugVersionNumber;

//! Project version string for JGDebug.
FOUNDATION_EXPORT const unsigned char JGDebugVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <JGDebug/PublicHeader.h>


